package com.bestcem.xm.member.grpc.service.param;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 获取来源名片列表参数
 * @date 2021-08-01
 */
@Getter
@Setter
@NoArgsConstructor
public class ListSourceCardsParam {
    /**
     * 分页参数
     */
    @Valid
    @NotNull(message = "分页参数不能为空")
    private PageParam page;

    /**
     * 企业标识
     */
    @NotBlank(message = "企业标识不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "企业标识格式错误")
    private String orgId;


    /**
     * 联系人标识
     */
    @NotBlank(message = "联系人标识不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "联系人标识格式错误")
    private String memberId;
}
